package com.qianfeng.user.service;

import com.qianfeng.user.bean.User;
import com.qianfeng.user.dao.UserDao;
import com.qianfeng.utils.DBUtils;

public class UserService {
	
	public User getUserByUserNameAndPassword(User user) {
		UserDao userDao = DBUtils.getMapper(UserDao.class);
		
		User user2=userDao.getUserByUserNameAndPassword(user);
		
		DBUtils.release();
		
		return user2;
	}
}
